package com.bluemobi.ssm.service;

import java.util.List;

import com.bluemobi.ssm.model.${toClassName};
<#if hasCompositePk&&primeType!=toClassName>import com.bluemobi.ssm.model.${toClassName}Id;</#if>

/**
*
* @ClassName: ${toClassName}
* @Description: ${toClassName} 接口,实现增删改查
* @author
* @date
*
*/
public interface ${toClassName}Service {
public List<${toClassName}> getAll${toClassName}s();
public List<${toClassName}> get${toClassName}sByCondition(${toClassName} ${toEntityName});
public ${toClassName} find${toClassName}ById(${primeType} primeKey);
public long total${toClassName}s(${toClassName} ${toEntityName});
<#if hasFieldAutoIncrease>
public ${toClassName} addNew${toClassName}(${toClassName} ${toEntityName});
<#else>
public void addNew${toClassName}(${toClassName} ${toEntityName});
</#if>
public void remove${toClassName}ById(${primeType} primeKey);
public void modify${toClassName}(${toClassName} ${toEntityName});
}
